[POWERPC][TOOLS] Fix xc.c mismerge.
authorHollis Blanchard <hollisb@us.ibm.com>
Wed, 3 Jan 2007 23:11:55 +0000 (17:11 -0600)
committerHollis Blanchard <hollisb@us.ibm.com>
Wed, 3 Jan 2007 23:11:55 +0000 (17:11 -0600)
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
tools/python/xen/lowlevel/xc/xc.c

index eaa8fe0846cb72788d689044cb86d314a320f422..6f3e643a6afc4ab210497db44a5842f803cbed86 100644 (file)
@@ -930,7 +930,7 @@ static PyObject *pyxc_alloc_real_mode_area(XcObject *self,
         return NULL;
 
     if ( xc_alloc_real_mode_area(self->xc_handle, dom, log) )
-        return PyErr_SetFromErrno(xc_error);
+        return pyxc_error_to_exception();
 
     Py_INCREF(zero);
     return zero;
@@ -944,6 +944,7 @@ static PyObject *pyxc_prose_build(XcObject *self,
     char *image, *ramdisk = NULL, *cmdline = "", *features = NULL;
     int flags = 0;
     int store_evtchn, console_evtchn;
+    unsigned int mem_mb;
     unsigned long store_mfn = 0;
     unsigned long console_mfn = 0;
     void *arch_args = NULL;
@@ -955,22 +956,22 @@ static PyObject *pyxc_prose_build(XcObject *self,
                                 "ramdisk", "cmdline", "flags",
                                 "features", "arch_args", NULL };
 
-    if ( !PyArg_ParseTupleAndKeywords(args, kwds, "iiis|ssiss#", kwd_list,
-                                      &dom, &store_evtchn,
+    if ( !PyArg_ParseTupleAndKeywords(args, kwds, "iiiis|ssiss#", kwd_list,
+                                      &dom, &store_evtchn, &mem_mb,
                                       &console_evtchn, &image,
                                       /* optional */
                                       &ramdisk, &cmdline, &flags,
                                       &features, &arch_args, &unused) )
         return NULL;
 
-    if ( xc_prose_build(self->xc_handle, dom, image,
+    if ( xc_prose_build(self->xc_handle, dom, mem_mb, image,
                         ramdisk, cmdline, features, flags,
                         store_evtchn, &store_mfn,
                         console_evtchn, &console_mfn,
                         arch_args) != 0 ) {
         if (!errno)
              errno = EINVAL;
-        return PyErr_SetFromErrno(xc_error);
+        return pyxc_error_to_exception();
     }
     return Py_BuildValue("{s:i,s:i}", 
                          "store_mfn", store_mfn,